// stores/counter.js
import { defineStore } from 'pinia';

export const systemInfoStore = defineStore('systemInfo', {
	state: () => {
		return {
			count: 0,
			systemInfo: {}
		};
	},
	// state: () => ({ count: 0 })
	actions: {

		getSystemInfo: () => {
			uni.getSystemInfo({
				success: function (info) {
					console.log(info);
					this.systemInfo = info
				}
			});
		}
	},
});